Smush\Core\Url_Utils S

Total Complexity 48
Dependencies 1
Dependents 14
Total lines 242
Lines of code 155
Logical lines of code 88
Comment lines 28
Methods 17
Properties 2

Methods 17

Method Rating Maintainability Complexity Lines of code
get_image_dimensions()
A
53 8 24
make_media_url_relative()
S
60 4 13
guess_dimensions_from_image_url()
S
62 4 11
get_url_without_dimensions()
S
56 3 18
url_has_200_response()
S
63 4 10
get_url_content_type_header()
S
63 3 11
url_to_path()
S
63 3 11
is_external_url()
S
66 3 9
get_extension()
S
68 2 7
get_url_scheme()
S
70 2 6
get_query_vars()
S
65 2 9
should_fetch_external_image_dimensions()
S
77 2 3
_get_image_dimensions()
S
68 2 7
get_content_url()
S
72 2 6
is_relative()
S
77 2 3
__construct()
S
80 1 3
normalize_url()
S
74 1 4